package cn.zero.flowspringbootstater.constant;

import java.util.HashMap;

/**
 * @Author:lei_ei
 * @Description:
 * @Date:2022/5/30 14:11
 **/
public interface Constrants {


    /**
     * 审批类型
     */

    interface FlowType {
        /**
         * 单审批
         */

        String SINGLE = "1";
        /**
         * 多审批
         */

        String MULTIPLE = "0";
    }

    /**
     * 审批状态
     */

    class FlowState {
        public static HashMap<String, String> states = new HashMap();
        /**
         * 审批中
         */
        public static String UNDER_APPROVAL = "0";
        /**
         * 待审核
         */
        public static String TO_APPROVAL = "3";

        /**
         * 草稿
         */
        public static String DRAFT = "5";

        /**
         * 审批通过
         */
        public static String PASS_APPROVAL = "1";
        /**
         * 审批不通过
         */
        public static String REJECT_APPROVAL = "2";
        /**
         * 审批结束
         */
        public static String OVER_APPRPVAL = "4";
        /**
         * 审批被撤销
         */
        public static String REVOKE = "-1";

        static {
            states.put("0", "审批中");
            states.put("1", "审批通过");
            states.put("2", "审批不通过");
            states.put("4", "审批结束");
            states.put("-1", "审批撤销");
        }
    }
}
